//#define __DEBUG__
// by Xeno
#define THIS_FILE "fn_placedobjkilled.sqf"
#include "x_setup.sqf"

private ["_val", "_ar", "_obj"];
PARAMS_1(_obj);
_val = GV(_obj,GVAR(owner));
if (!isNil "_val") then {
	_ar = GV2(GVAR(placed_objs_store),_val);
	if (!isNil "_ar") then {
		_ar = _ar - [_this select 0];
		GVAR(placed_objs_store) setVariable [_val, _ar];
	};
	[QGVAR(p_o_an), _val] call FUNC(NetCallEventToClients);
};
_obj removeAllMPEventHandlers "MPKilled";